import * as types from './types'

const reducer = (state = {}, action = {}) => {
  switch (action.type) {
    case types.USERINFO:
      return {
        ...state,
        userInfo: action.userInfo
      }
    default:
      return state
  }
}
export default reducer